package com.wanczy.util;

import java.sql.Connection;
import java.sql.DriverManager;

public class GetDBConnection {
	public static final String DRIVER = "oracle.jdbc.OracleDriver";
	public static final String URL = "jdbc:oracle:thin:@DESKTOP-LUG820U:1521:luoge";
	public static final String DBNAME = "scott";
	public static final String PASSWORD = "abc";
	public static Connection getConnection() throws Exception {
		Connection conn = null;
		Class.forName(DRIVER);// ʹ�÷���ķ�ʽ������������
		conn = DriverManager.getConnection(URL, DBNAME, PASSWORD);
		return conn;
	}
}
